#include "shm.hpp"
#include "fifo.hpp"

int main()
{
    Shm shm(pathName, projId, USER);
    FileOper writeFO(PATH, FILENAME);
    writeFO.OpenForWrite();
    
    char *mm = (char*)shm.VirtualAddr();
    int index = 0;
    for(char c = 'A'; c <= 'Z'; c++, index += 2)
    {
        mm[index] = c;
        mm[index+1] = c;
        mm[index+2] = 0;
        writeFO.WakeUp();
        sleep(1);
    }
    return 0;
}

